package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.AllocationTypeEnum;
import com.sc.nft.enums.DivideTypeEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 交易池订单分润结算表(sc_trading_pool_order_settle)实体类
 *
 * @author jinpinhai
 * @since 2024-11-01 15:12:46
 * @description Generator
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_trading_pool_order_settle")
public class TradingPoolOrderSettle extends SuperEntity<TradingPoolOrderSettle> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 订单Id
     */
    private Long orderId;
    /**
     * 总金额
     */
    private BigDecimal sumAmount;
    /**
     * 分配金额
     */
    private BigDecimal allocationAmount;
    /**
     * 分配类型
     */
    private DivideTypeEnum divideType;
    /**
     * 分配池类型
     */
    private AllocationTypeEnum allocationType;
    /**
     * 比例
     */
    private BigDecimal ratio;
    /**
     * 归属Id(人或dao)
     */
    private Long vestId;
    /**
     * 是否已结算
     */
    private Boolean isSettle;

}